namespace Expect.Documentation.Reporting
{
    using System;
    using Expect.Core;
    using Expect.Core.Fixtures;
    using Microsoft.VisualStudio.TestTools.UnitTesting;
    
    
    // This file is generated, if you modify content you will lose your modifications when the generator will regenerate the file
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Expect.Core", "0.5.2.0")]
    [System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
    [TestClass()]
    [SpecificationContainerAttribute(Name="Adding images to report", Path="\\Reporting\\Adding images to report.expect")]
    public partial class AddingImagesToReportContainer : Expect.Core.AbstractSpecificationContainer
    {
        
        partial void PrepareContextExtension();
        
        partial void BeforeInitExtension();
        
        partial void AfterInitExtension();
        
        partial void BeforeTeardownExtension();
        
        partial void AfterTeardownExtension();
        
#line 1 "Adding images to report.expect"
#line hidden
        
        public override void InitializeContext()
        {
            base.InitializeContext();
            PrepareContextExtension();
        }
        
        [TestInitialize()]
        public virtual void AddingImagesToReportClass_TestInit()
        {
            InitializeContext();
            BeforeInit();
            BeforeInitExtension();

            SpecificationDefinition spec = new SpecificationDefinition();
            spec.CalculateResult();

            if ((spec.Status.Success.HasValue == false))
            {
                Assert.Inconclusive(spec.GetMessageForInconclusiveResult());
            }
            if ((spec.Status.Success.Value == false))
            {
                Assert.Fail(spec.GetMessageForFailedResult());
            }

            AfterInit();
            AfterInitExtension();
        }
        
        [TestCleanup()]
        public virtual void AddingImagesToReportClass_TestTeardown()
        {
            BeforeTeardown();
            BeforeTeardownExtension();

            SpecificationDefinition spec = new SpecificationDefinition();
            spec.CalculateResult();

            if ((spec.Status.Success.HasValue == false))
            {
                Assert.Inconclusive(spec.GetMessageForInconclusiveResult());
            }
            if ((spec.Status.Success.Value == false))
            {
                Assert.Fail(spec.GetMessageForFailedResult());
            }

            AfterTeardown();
            AfterTeardownExtension();
        }
        
        // TestComment
        [TestMethod()]
        public virtual void AddingImagesToReport()
        {
            SpecificationDefinition spec = new SpecificationDefinition();
            Get_AddingImagesToReport(spec);
            spec.CalculateResult();

            if ((spec.Status.Success.HasValue == false))
            {
                Assert.Inconclusive(spec.GetMessageForInconclusiveResult());
            }
            if ((spec.Status.Success.Value == false))
            {
                Assert.Fail(spec.GetMessageForFailedResult());
            }
        }
        
        [SpecificationProviderAttribute(Name="Adding images to report")]
        public virtual void Get_AddingImagesToReport(Expect.Core.SpecificationDefinition spec)
        {
            spec.Context = Context;
            spec.Name = "Adding images to report";
            FixtureDefinition fixture = null;

            fixture = spec.AddFixture<DescriptionFixture>();
#line 1
            fixture.WithRow("You could add image to descriptions in the generated report. The images must be p" +
                    "art of your project and marked as \"Embedded resource\". This way, the assembly is" +
                    " self contained for report generation.");
#line 2
            fixture.WithRow("To add an image, add a line starting with #img and the path of your image, relati" +
                    "ve to your project root. For example, if your project contains a directory \"imag" +
                    "es\" that contains \"myimage.png\", you could add the following line to insert the " +
                    "image :");
#line 3
            fixture.WithRow("#img images\\myimage.png");
#line hidden
            fixture.EndRun();

            fixture = spec.AddFixture<DescriptionFixture>();
#line 5
            fixture.WithRow("!The following diagram is inserted this way :!");
#line 6
            fixture.WithRow("{{");
#line hidden
            fixture.EndRun();

            fixture = spec.AddFixture<ImageDescriptionFixture>();
#line 7
            fixture.WithRow("images\\ResolutionProcess.png");
#line hidden
            fixture.EndRun();

            fixture = spec.AddFixture<DescriptionFixture>();
#line 8
            fixture.WithRow("}}");
#line hidden
            fixture.EndRun();

        }
    }
}
